package edu.hawaii.duedates.configuration.jaxb;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
 * Test case for User jaxb class.
 * @author Creighton Okada
 */
public class TestUser {
  /**
   * Tests User functionality.
   */
  @Test
  public void testUser() {
    User user = new User();
    user.getLibrary().clear();
    
    String name = "name";
    String email = "email";
    String password = "password";
    
    user.setName(name);
    user.setEmail(email);
    user.setPassword(password);
    
    assertEquals("Assert name change.", name, user.getName());
    assertEquals("Assert email change.", email, user.getEmail());
    assertEquals("Assert password change.", password, user.getPassword());
  }
}
